package com.mo.lib.ui.dialog

import android.view.View
import android.widget.TextView
import com.mo.lib.R

/**
 * @ author：mo
 * @ data：2019/5/13:9:05
 * @ 功能：加载中弹窗
 */
class LoadingDialog(val tips: String = "加载中...") : BaseDialog( R.layout.dialog_loading) {
    init {
        val tv_dialog_loading = dialog.findViewById<TextView>(R.id.tv_dialog_loading)
        if (tips.isEmpty()) {
            tv_dialog_loading.visibility = View.GONE
        } else {
            tv_dialog_loading.visibility = View.VISIBLE
            tv_dialog_loading.text = tips
        }

    }

    override fun doWhat() {

    }

}